package customexceptions;

public class ServiceAlreadyExistsException extends Exception {
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int intError;
	private String strMessage;
	  
	 public ServiceAlreadyExistsException(int intErrNo){
	    intError = intErrNo;
	  }

	 public ServiceAlreadyExistsException(String strMessage){
	    super(strMessage);
	    this.strMessage = strMessage;
	   }

	   public String toString(){
	    return "ServiceAlreadyExistException ["+intError+"]";
	   } 
	   public String getErrorMessage(){
		   return strMessage;
	   }
}
